package com.hodgepodge.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * title MyBatisPlusConfig
 * projectName colorful-blog
 * desc MyBatisPlus配置
 *
 * @author jiangjian
 * @date 2021/6/1 15:04
 */
@Configuration
public class MyBatisPlusConfig {

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
